import { defineStore } from 'pinia'
import { ref } from 'vue'
// 用户模块 token setToken removeToken
export const useParms = defineStore('search', () => {
  const params = ref({
    factoryId: '', //产房号
    checkStartDate: '', //搜索开始时间
    checkEndDate: '', //搜索结束时间
    deviceCode: '', //机台号
    id: '', //厂房
    clothCode: '' //布匹编号
  })
  const emptyParams = () => {
    params.value.factoryId = ''
    params.value.checkStartDate = '' //搜索开始时间
    params.value.checkEndDate = '' //搜索结束时间
    params.value.clothCode = ''
    params.value.deviceCode = ''
    params.value.id = ''
  }
  return {
    params,
    emptyParams
  }
})
